package com.yrihr.wisdom.common;

/**
 * @ClassName : ResponseCode
 * @Description : 状态码
 * @Author : wind
 * @Date: 2020-11-24 18:47
 * @Version 1.0
 */
public enum ResponseCode {
    USER_LOGIN_SUCCESS(1001, "登陆成功."),
    USER_LOGIN_ERROR(1002, "登陆失败."),
    SELECT_TODAY_NEWS_SUCCESS(1003,"查询成功"),
    SELECT_TODAY_NEWS_ERROR(1004,"查询成功"),
    SUCCESS(1005,"查询成功"),
    ERROR(1006,"查询失败");

    private Integer status;
    private String desc;

    ResponseCode(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer status() {
        return this.status;
    }

    public String description() {
        return this.desc;
    }


}
